<div id="content">
	<h3 class="widgettitle"><span><?php echo $this->Html->link('Trang chủ',array('controller'=>'news','action'=>'home'));?> » <?php echo $this->Html->link('CÔNG TRÌNH - DỰ ÁN',array('controller'=>'plans'));?></span></h3>
    <div id="content-detail">
<?php foreach ($galleries as $news):?>
		<div class="clearfix post">
			 <h2 class="title">
				<?php echo $this->Html->link($this->Text->truncate($news['Plan']['name'],125), array('action' => 'view',$this->Link->seo($news['Plan']['id'],$news['Plan']['name'])),array('class'=> 'link_text_14_xanh_dam','title'=>$news['Plan']['name'])); ?>
			 </h2>
			 <div class="postmeta-primary"> <span class="meta_date">
				Ngày đăng: <?php echo date('d/m/Y',strtotime($news['Plan']['ngaydang']));?></span>
     		</div>
 			<div class="entry clearfix">
                 <?php
                    echo $this->Html->link($this->Html->image('../files/uploads/images/'.$news['Image'][0]['url'],array('alt'=>$news['Plan']['name'],'title'=>$news['Plan']['name'],'width'=>200,'height'=>150,'class'=>'alignleft featured_image')),
                   array('controller'=>'plans','action'=>'view',$this->Link->seo($news['Plan']['id'],$news['Plan']['name'])),array('escape'=>false)
                        );
                 ?>
				<p><?php echo $this->Text->truncate($news['Plan']['description'],200,array('ending' => '...','exact' => true,'html' => true));?></p>
				<p><b>Địa chỉ:</b>&nbsp;<?php echo $news['Plan']['address'];?></p>
				<p><b>Nhà thầu:</b>&nbsp;<?php echo $news['Plan']['contractor'];?></p>
				<div class="readmore">
					<?php echo $this->Html->link("Chi tiết",array('controller'=>'plans','action'=>'view',$this->Link->seo($news['Plan']['id'],$news['Plan']['name'])),array('title'=> $news['Plan']['name'],'rel'=>"bookmark"));?>
				</div>
			</div>
            <div class="item-space" style="border-top:#CCC 1px dotted;">
        	</div>
		</div>
	<?php endforeach;?>
<div class="paging">
		<?php echo $this->element("pages");?>
		</div>
      <div align="right" style="height:25px">
    <a href="#main"><img src="<?php echo $this->webroot;?>img/backtop.png"/>&nbsp;Lên đầu trang</a>
    </div>
</div>
    <!-- .navigation -->
</div>
<?php echo $this->element('news-right');?>

